import Mock from 'mockjs'

const data = Mock.mock({
  'items|30': [{
    id: '@id',
    CaseID: '@sentence(1, 1)',
    Creator: '@sentence(1, 1)',
    Category: '@sentence(1, 1)',
    Athelete: '@sentence(1, 1)',
    Sport: '@sentence(1, 1)',
    TC: '@sentence(1, 1)',
    PIC: '@sentence(1, 1)',
    ReviewSession: '@sentence(1, 1)',
    ShortReport: '@sentence(1, 1)'
  }]
})

export default [{
  url: '/table/list',
  type: 'get',
  response: config => {
    const items = data.items
    return {
      code: 20000,
      data: {
        total: items.length,
        items: items
      }
    }
  }
}]
